package com.scm.biz.service;

import java.util.List;
import java.util.Map;

import com.scm.biz.bean.SysUser;
import com.scm.biz.query.SysUserQuery;
import com.scm.biz.result.SysUserInfoResult;
import com.scm.biz.result.SysUserResult;


public interface SysUserService{
	public List<SysUserResult> queryPage(SysUserQuery sysUserQuery);
	public List<SysUser> queryList();
	public List<SysUser> selectList();
	public List<SysUser> selectListByRoleCode(String roleCode);
	public void insert(SysUser sysUser);
	public SysUser selectByEmail(String email);
	public void delete(int id);
	public SysUser selectByPrimaryKey(int id);
	public void updateByPrimaryKeySelective(SysUser sysUser);
	/**
     * 根据邮箱查询出当前登录用户的基本信息
     * @param email 要查询的email
     * @return
     */
	public SysUserInfoResult getUserById(String email);
	
	/**
     * 修改指定用户的密码
     * @param sysUser
     * @return
     */
    public int modifyPassword(String email,String password);
    
    /**
     * 根据邮箱查询出对应的密码
     * @param email
     * @return
     */
    public String getPassword(String email);
    
  
    /**
     * 查询所有的项目经理
     * @return
     */
    public List<SysUser> getManager();
    
    /**
     * 查询所有的销售
     * @return
     */
    public List<SysUser> getSale();
    
    /**
     * 邮箱是否存在
     * @param map
     * @return
     */
     public boolean haveEmail(String email,Long id);
}
